﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Versioning;

namespace 测试项目.NewFolder1
{

    [Serializable]
    public struct Class1<T>
    {

        private string Id { get; set; }

        public static implicit operator Class1<T>(string str)
        {
            var result = new Class1<T>();
            result.Id = str;
            return result;
        }

        public string GetValueOrDefault()
        {
            return this.Id;
        }


        public static implicit operator string(Class1<T> item)
        {
            return item.Id;
        }

        public override string ToString()
        {
            return this.Id;
        }
    }
}
